home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2001 August / CMycha200108.iso / Zaczarowane / start.swf / scripts / DefineButton2_612 / BUTTONCONDACTION on(release).as
Text File  |  2001-06-06  |  891b  |  34 lines

  1. on(release){
  2.    var i;
  3.    x = -30;
  4.    y = -790;
  5.    setProperty(_root.mc_scroll.mc_rzeczy, _Y, 492);
  6.    _root.number = 0;
  7.    i = 1;
  8.    while(33 >= i)
  9.    {
  10.       if(eval("_root.zapakowany" + i) != true)
  11.       {
  12.          setProperty(eval("_root.mc_scroll.mc_rzeczy.mc_r" + i), _visible, true);
  13.          eval("_root.mc_scroll.mc_rzeczy.mc_r" + i).gotoandstop(1);
  14.          set("_root.mc_scroll.mc_rzeczy.mc_r" + i + ".ubrany",false);
  15.          x += 110;
  16.          if(350 < x)
  17.          {
  18.             x = 80;
  19.          }
  20.          if(x == 80)
  21.          {
  22.             y += 120;
  23.          }
  24.          setProperty(eval("_root.mc_scroll.mc_rzeczy.mc_r" + i), _X, x);
  25.          setProperty(eval("_root.mc_scroll.mc_rzeczy.mc_r" + i), _Y, y);
  26.       }
  27.       else
  28.       {
  29.          setProperty(eval("_root.mc_scroll.mc_rzeczy.mc_r" + i), _visible, false);
  30.       }
  31.       i++;
  32.    }
  33. }
  34.